cmake_minimum_required(VERSION 3.5.1)

set(PROTOS monitor_log.proto)

PROTOBUF_GENERATE_CPP(PROTO_SRCS PROTO_HDRS ${PROTOS})

include_directories(${PROTOBUF_INCLUDE_DIRS})

add_library(monitor_log_proto_lib ${PROTO_SRCS} ${PROTO_HDRS})
target_link_libraries(monitor_log_proto_lib 
common::proto
${PROTOBUF_LIBRARIES})


add_library(monitor_log_proto ALIAS monitor_log_proto_lib)

install(TARGETS monitor_log_proto_lib
        EXPORT apollo-export
        LIBRARY DESTINATION lib
        ARCHIVE DESTINATION lib
        RUNTIME DESTINATION bin
        INCLUDES DESTINATION .
        )



